﻿using Microsoft.Extensions.Primitives;

namespace Acl.Messages;

/// <summary>
/// 分布式请求参数
/// </summary>
/// <typeparam name="TData"></typeparam>
public interface IDistributionRequest<TData>
{
    /// <summary>
    /// 消息主题
    /// </summary>
    string Topic { get; }
    /// <summary>
    /// 消息头
    /// </summary>
    IDictionary<string, StringValues>? Headers { get; }

    /// <summary>
    /// 负载数据
    /// </summary>
    TData? Data { get; }
}
